Matt Beckman
Penn State University
Danny Kaplan
Macalester College
U.S. Conference on Teaching Statistics
University Park, PA
May 20, 2017
dplyr, ggplot2, and other tidyverse packages (little base R)View())xyzGraphBuilder())
filter(), group_by(), summarise(), mutate()ggplot() graphics exploring relationships among ticket sales, genre, year, studio, etcwhile loop to utilize an index in the URL to scrape monthly data tablesjoin operation adds each monthly table to the mastergather()select(), filter(), group_by(), summarise()ggplot() graphicsfor loop to iterate over list then create and store ggplot() graphic for each champion in a new listparty::ctree() to build competing models based on recursive partitioningselect(), group_by(), summarise(), mutate()USMap() choropleths for comparisons among statesselect(), filter(), group_by(), summarise(), mutate()# Student Code
data1<-unique(data)
data2<-na.omit(data1)
RestaurantMap <-
leaflet(data2) %>%
addTiles() %>%
addCircleMarkers(radius = 2, color = "red") %>%
setView( lng =-73.935242, lat =40.730610, zoom = 12) #New York
RestaurantMap
select(), group_by(), summarise(), mutate()